package legumes.server.admin.tools;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class Misc {
	public static String readASCII(InputStream in_) throws IOException {
		InputStreamReader reader = new InputStreamReader(in_);
		char buff[] = new char[1024];
		StringBuilder stringBuilder = new StringBuilder();
		int readCount;
		while ((readCount = reader.read(buff)) != -1)
			stringBuilder.append(buff, 0, readCount);
		reader.close();
		return stringBuilder.toString();
	}

}
